// pages/teacher/myStudets/list/index.js
import {request} from '../../../../request.js'
Page({

  /**
   * 页面的初始数据
   */
  data: {
    studentList: [],
    modalName: null,
    idCache:null,
    currentData:[],
    modelList:[]
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var url = '/gym/studentAssignment/student/list/'+wx.getStorageSync('userId');
    request(url,'GET','').then(res=>{
      this.setData({
        studentList:res.students
      })
    })
  },
})